package cn.edu.scut.sys.vo;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * TrainItem entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "train_item", catalog = "scoredb")
@JsonIgnoreProperties(value={"hibernateLazyInitializer"})
public class TrainItem implements java.io.Serializable {

	private static final long serialVersionUID = -7286014297298013192L;

	// Fields

	private Long id;
	private String description;
	private Integer threshold;
	private Integer compare;

	// Constructors

	/** default constructor */
	public TrainItem() {
	}

	/** full constructor */
	public TrainItem(String description, Integer threshold, Integer compare) {
		this.description = description;
		this.threshold = threshold;
		this.compare = compare;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "description", length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "threshold")
	public Integer getThreshold() {
		return this.threshold;
	}

	public void setThreshold(Integer threshold) {
		this.threshold = threshold;
	}

	@Column(name = "compare")
	public Integer getCompare() {
		return this.compare;
	}

	public void setCompare(Integer compare) {
		this.compare = compare;
	}

}